import request from '@/utils/request';

export default {
  //生成订单
  createOrders(orderId) {
    return request({
      url: `/eduorder/t-order/createOrder/${orderId}`,
      method: 'post',
    })
  },
  //根据订单id查询订单信息
  getOrdersInfo(orderId) {
    return request({
      url: `/eduorder/t-order/getOrdersInfo/${orderId}`,
      method: 'get',
    })
  },
  //生成二维码的方法
  createNative(orderNo) {
    return request({
      url: `/eduorder/t-pay-log/createNative/${orderNo}`,
      method: 'get',
    })
  },
  //查询订单状态的方法
  queryPayStatus(orderNo) {
    return request({
      url: `/eduorder/t-pay-log/queryPayStatus/${orderNo}`,
      method: 'get',
    })
  },
}